import {
  CreateStudentPageComponent,
  CreateSubjectPageComponent,
  CreateSubjectRecordPageComponent,
  DanceClassListComponent,
  HomeComponent,
  StudentDetailComponent,
  StudentListComponent
} from 'routeTables'

export interface RouteConfigInter {
  title: string,
  path: string,
  component: any,
  isNav?: boolean,
}

export const routeConfigs: RouteConfigInter[] = [
  {
    title: '首页',
    path: '/',
    component: HomeComponent,
    isNav: true,
  },
  {
    title: '用户信息',
    path: '/user_info',
    component: HomeComponent,
    isNav: true,
  },
  {
    title: '舞蹈班列表',
    path: '/subject/list',
    component: DanceClassListComponent,
    isNav: true,
  },

  {
    title: '创建学科',
    path: '/subject/create',
    component: CreateSubjectPageComponent,
  },

  {
    title: '学科上课记录',
    path: '/subject/record',
    component: CreateSubjectRecordPageComponent,
  },

  {
    title: '学生列表',
    path: '/student/list',
    component: StudentListComponent,
    isNav: true,
  },
  {
    title: '创建学生档案',
    path: '/student/create',
    component: CreateStudentPageComponent,
  },
  {
    title: '创建学生个人作品档案',
    path: '/student/detail',
    component: StudentDetailComponent,
  },
  {
    title: '师资力量',
    path: '/theater_info',
    component: DanceClassListComponent,
    isNav: true,
  },
  {
    title: '活动列表',
    path: '/activity/list',
    component: DanceClassListComponent,
    isNav: true,
  },
  {
    title: '学校介绍',
    path: '/school_info',
    component: DanceClassListComponent,
    isNav: true,
  }
]
